package com.angus.modules.content.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author liyanan
 * @date 2024/10/21 11:03 AM
 * @description
 */
@Data
public class AddCourseDto {

    @NotBlank(message = "课程名称不能为空")
    private String courseName;

    private Integer status;

    @NotNull(message = "课程价格不能为空")
    private BigDecimal courseAmount;

    @NotBlank(message = "课程类型不能为空,CN:汉语，EN：英文")
    private String contentType;
    /**
     * 课程佣金分成比例：课程价格 * 佣金比例 = 佣金金额
     */
    @NotNull(message = "佣金比例不能为空")
    private BigDecimal commissionRate;
}
